package com.example.photography.fragment.order;

import android.widget.ListView;

import com.example.photography.R;
import com.example.photography.adapter.order.Order_model_Adapter;
import com.example.photography.bean.Order_photoBean;
import com.example.photography.common.BaseFragment;
import com.loopj.android.http.RequestParams;

import java.util.List;

import butterknife.BindView;

public class Order_model extends BaseFragment {
    @BindView(R.id.lv_item)
    ListView lvItem;
    private List<Order_photoBean.DataBean.ModelBean> modelBeans;

    public Order_model(List<Order_photoBean.DataBean.ModelBean> modelBeans) {
        this.modelBeans = modelBeans;
    }

    @Override
    protected RequestParams getParams() {
        return null;
    }

    @Override
    protected String getUrl() {
        return null;
    }

    @Override
    protected void initData(String content) {
        Order_model_Adapter order_model_adapter = new Order_model_Adapter(modelBeans, getActivity());
        lvItem.setAdapter(order_model_adapter);

    }

    @Override
    public int getLayoutId() {
        return R.layout.lv_order;
    }
}
